﻿using System;
using UnityEngine;
using Zenject;

namespace DiIoc.SubContainer
{
    public class Ship : MonoBehaviour
    {
        ShipHealthHandler _healthHandler;
        [Inject]
        public void Construct(ShipHealthHandler healthHandler)
        {
            _healthHandler = healthHandler;

        }

        public void TakeDamage(float damage)
        {
            _healthHandler.TakeDamage(damage);
        }
    }
}

